<template>
	<div class="home" @scroll="evenBox">
		首页内嵌页面
	</div>
</template>

<script>
import {getToken} from "@/utils/auth.js";
export default {
	head() {
		return {
			title: this.title,
			meta: [
				{ name: 'keywords', content: this.keywords },
				{ name: 'description', content: this.description }
			]
		}
	},
	data() {
		return {
			title: "首页title",
			keywords: "首页keywords",
			description: "首页description",
			token: null
		};
	},
	async asyncData({isDev, route, store, env, params, query, req, res, redirect, error, $api}) {
		return {
			title: "异步首页title",
			keywords: "异步首页keywords",
			description: "异步首页description",
		}
	},
	computed: {
	},
	beforeCreate() {
		if(process.client){
			this.$i18n.locale = "en";
		}
	},
	created() {
		if(process.client){
			this.token = getToken();
		}
	},
	methods: {
		evenBox(event) {
			console.log(event);
		}
	},
	components: {
	},
};
</script>

<style lang="scss" scoped>
@import '@/static/styles/scss/mixins/common.scss';
</style>
